package com.ruoyi.business.domain.bo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 购物车对象 shopping_car
 *
 * @author 吴倩芸
 * @date 2023-03-07
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ShoppingCarBo extends BaseEntity
        {
private static final long serialVersionUID=1L;

    /** $column.columnComment */
    private Long id;

    /** 产品的id */
            @Excel(name = "产品的id")
    private Long productId;

    /** 用户id */
            @Excel(name = "用户id")
    private Long userId;

    /** 选择数量 */
            @Excel(name = "选择数量")
    private Long num;

    /** 价值 */
            @Excel(name = "价值")
    private Double worth;

    /** 加入购物车的时间 */
            @JsonFormat(pattern = "yyyy-MM-dd")
            @Excel(name = "加入购物车的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addTime;

    /** 购买的时间 */
            @JsonFormat(pattern = "yyyy-MM-dd")
            @Excel(name = "购买的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date buyTime;



        }
